# # 用于生成避障节点的坐标
# for i in range(0, 224):
#     print(i, ":", "(", i // 14, ",", i % 14, "), ", sep='')
#     if i % 14 == 13:
#         print()
#
# # 用于生成Xdie节点
# # 先生成所有的X节点， 而后采用替换和手动修改的方式进行边缘A节点的重命名
# for j in range(1, 16):
#     for i in range(14):
#         print("X", j, "_", i % 14, ": Die", sep='')
#         print("{")
#         print("\t@ display(\"p=", 1295 + 150 * i, ",", 2792 - 100 * (j-1), "\");", sep='')
#         print("}")

# 用于生成oA节点
# oA01 - oA012
# for i in range(1, 13):
#     print("oA0", i, ": Outer", sep='')
#     print("{")
#     print("\t@display(\"p=", 1445 + 150 * (i-1), ",3042\");", sep='')
#     print("}")

# oA151 - oA1512
# for i in range(1, 13):
#     print("oA15", i, ": Outer", sep='')
#     print("{")
#     print("\t@display(\"p=", 1445 + 150 * (i-1), ",1242\");", sep='')
#     print("}")

# oA10 - oA150
# for i in range(1, 15):
#     print("oA", i, "0: Outer", sep='')
#     print("{")
#     print("\t@display(\"p=1145, ", 2792 - 100 * (i - 1), "\");", sep='')
#     print("}")

# oA113 - oA1413
# for i in range(1, 15):
#     print("oA", i, "13: Outer", sep='')
#     print("{")
#     print("\t@display(\"p=3395, ", 2792 - 100 * (i - 1), "\");", sep='')
#     print("}")

# 用于连接
# 底部oA的连接
# for i in range(1, 13):
#     print("oA0", i, ".outer_port <--> A0_", i, ".south;", sep='')
# 顶部oA的连接
# for i in range(1, 13):
#     print("oA15", i, ".outer_port <--> A15_", i, ".north;", sep='')
# 左oA的连接
# for i in range(1, 15):
#     print("oA", i, "0.outer_port <--> A", i, "_0.west;", sep='')
# 右oA的连接
for i in range(1, 15):
    print("oA", i, "13.outer_port <--> A", i, "_13.east;", sep='')
